package com.neno.dao;

import com.neno.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserDao {
    List<User> selectUsers();

    User getUserById(String email);

    int deleteUserById(String email);

    int updateUser(User user);

    int insertUser(User user);

    User getUserByNameAndPassword(@Param("name") String name, @Param("password") String password);
}
